From fd10677adc7202bdf8c76da8e23ca403aa2bfd7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sun, 20 Nov 2016 13:28:43 +0100 Subject: [PATCH] babl-cache: avoid %'ing by 0 --- babl/babl-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babl/babl-cache.c b/babl/babl-cache.c index 4a26db0..926d9f1 100644 --- a/babl/babl-cache.c +++ b/babl/babl-cache.c @@ -209,7 +209,7 @@ void babl_init_db (void) if (babl) { if ( ((babl->fish.pixels+1 + babl->fish.processings) % - (tim % 100)) == 0) + ((tim % 100)+1)) == 0) { /* 1% chance of individual cached conversions being dropped - * making sure mis-measured conversions do not -- 2.30.2